
package org.zarroboogs.weibo.setting.fragment;

import org.zarroboogs.weibo.db.task.FilterDBTask;

import java.util.Collection;
import java.util.List;

public class FilterUserFragment extends AbstractFilterFragment {

    @Override
    protected List<String> getDBDataImpl() {
        return FilterDBTask.getFilterKeywordList(FilterDBTask.TYPE_USER);
    }

    @Override
    protected void addFilterImpl(Collection<String> set) {
        FilterDBTask.addFilterKeyword(FilterDBTask.TYPE_USER, set);
    }

    @Override
    protected List<String> removeAndGetFilterListImpl(Collection<String> set) {
        return FilterDBTask.removeAndGetNewFilterKeywordList(FilterDBTask.TYPE_USER, set);
    }

}
